package com.wtwd.campus.h5_manager.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wtwd.campus.h5_manager.entity.H5Deviceinfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author mjy
 * @date 2022/03/09
 * @description
 */
@Mapper
public interface H5DeviceManageMapper extends BaseMapper<H5Deviceinfo> {

    List<H5Deviceinfo> queryDeviceByConditions(H5Deviceinfo searchDevice);

    Integer deleteDeviceById(@Param("deviceId") Integer deviceId);

    IPage<H5Deviceinfo> queryDeviceByConditionsPage(@Param("searchMap") H5Deviceinfo searchDevice, @Param("page") Page<H5Deviceinfo> page);

    IPage<H5Deviceinfo> queryVcomDeviceByConditionsPage(@Param("searchMap") H5Deviceinfo searchDevice, @Param("page") Page<H5Deviceinfo> page);
}
